package com.wiserun.RestFul.mapper;

import com.wiserun.RestFul.model.Organization;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PncsOrganizationMapper {
    //查询所有organization
    List<Organization> getOrganization();

    //添加Organization
    int addOrganization(Organization organization);

    //通过oid查询数据
    Organization queryOrgByOid(String oid);

    //修改组织机构信息
    int updateOrg(Organization organization);

    //统计数量
    int countByOid(String oid);
}
